import http from '@/plugins/axios'

export function getCustomerConsultationRecord(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/page',
    data
  })
}

export function addCustomerConsultationRecord(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/save',
    data
  })
}

export function getCustomerConsultationRecordDetail(consultId) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/info',
    data: { consultId }
  })
}

export function updateCustomerConsultationRecord(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/update',
    data
  })
}

export function removeCustomerConsultationRecord(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/delete',
    data
  })
}

export function changeFavorite(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/favorite',
    data
  })
}

export function changeArchiving(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/archiving',
    data
  })
}

export function changeMaster(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/changeMaster',
    data
  })
}

export function deleteMaster(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/deleteMaster',
    data
  })
}

export function addConsultRecord(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/addConsultRecord',
    data
  })
}

export function getConsultRecordList(data) {
  return http({
    method: 'POST',
    url: '/ykf/customerConsult/getConsultRecordList',
    data
  })
}
